import axios from '@/utils/request';

export function getLoadButtonIsShow(params) {
    return axios.post({
        url: '/product-type/loadButtonIsShow',
        data: params
    }).then((res) => {
        return res
    })
}

export function getProductTypeListAll(params) {
    return axios.post({
        url: '/product-type/listAll',
        data: params
    }).then((res) => {
        return res
    })
}
export function getProductTypeList(params) {
    return axios.post({
        url: '/product-type/list',
        data: params
    }).then((res) => {
        return res
    })
}

export function editProductType(params) {
    return axios.post({
        url: '/product-type/edit',
        data: params
    }).then((res) => {
        return res
    })
}

export function deleteProductType(params) {
    return axios.post({
        url: '/product-type/delete',
        data: params
    }).then((res) => {
        return res
    })
}

export function loadProductType(params) {
    return axios.post({
        url: '/product-type/load',
        data: params
    }).then((res) => {
        return res
    })
}

